<template>
    <div>
        <template v-for="(item, index) in names"> 
            <!-- 给slot传递参数 item， index -->
            <slot :item="item" :index="index"></slot>
        </template>
    </div>
</template>
<script>
export default {
    props: {
        names: {
            type: Array,
            default: () => []
        }
    },
    name: '',
    data() {
       return {}
    },
    created() {},
    methods: {},
}
</script>
<style>
</style>
